请求
curl --location 'https://openapi.gs-robot.com/openapi/v2alpha1/s/robots/TEST00-0000-000-S003/status'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{token}}'
输出
{
"serialNumber": "TEST00-0000-000-S003",
"taskState": "IDLE",
"online": true,
"speedKilometerPerHour": 0,
"battery": {
"charging": true,
"powerPercentage": 100
},
"emergencyStop": {
"enabled": false
},
"localizationInfo": {
"localizationState": "NORMAL",
"map": {
"id": "f950f2a3-8e87-4227-a5ed-af4a69ab65dd",
"name": "zy",
"version": "maps/a2e2d306-6fe6-11ef-9314-2f34eb0b96d5/versions/799cd92a-6fe9-11ef-9314-a5253308f6ef"
},
"mapPosition": {
"x": 903,
"y": 426,
"angle": -92.731
}
},
"cleanModes": [
{
"name": "清洗"
},
{
"name": "清扫"
},
{
"name": "尘推"
},
{
"name": "吸尘"
}
],
"supportSite": true,
"navigationPoints": {
"naviPoints": [
{
"naviPointName": "Origin"
},
{
"naviPointName": "1"
},
{
"naviPointName": "End"
},
{
"naviPointName": "Current"
}
]
},
"workModes": [
{
"id": "03d40cb292754452aeb96932c90787b9",
"name": "清洗",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "09f32e0e25154338ad149cbff97f8c4b",
"name": "清扫",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "2f5261caf6284bb79e9023c6858e3833",
"name": "尘推",
"strength": "prefer_custom",
"type": "1"
},
{
"id": "19f32e0e25154338ad149cbff97f8c4b",
"name": "吸尘",
"strength": "prefer_custom",
"type": "1"
}
],
"currentTask": {
"workMode": {
"id": "",
"name": "",
"type": 0,
"subType": "",
"strength": ""
},
"taskInstanceId": "",
"manualControlling": false
},
"device": {
"cleanWaterTank": {
"level": 0
},
"recoveryWaterTank": {
"level": 0
},
"rollingBrush": {
"ifPutDown": false
},
"softSqueegee": {
"ifPutDown": false
},
"rollingSqueegee": {
"ifPutDown": false
},
"vacuum": {
"enabled": false
}
}
}